<h1>Listing assignemnts</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Points possible</th>
    <th>Description</th>
  </tr>

<% for assignemnt in @assignemnts %>
  <tr>
    <td><%=h assignemnt.title %></td>
    <td><%=h assignemnt.points_possible %></td>
    <td><%=h assignemnt.description %></td>
    <td><%= link_to 'Show', assignemnt %></td>
    <td><%= link_to 'Edit', edit_assignemnt_path(assignemnt) %></td>
    <td><%= link_to 'Destroy', assignemnt, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New assignemnt', new_assignemnt_path %>
